#ifndef X2A_H
#define X2A_H

#include "common.h"

#include <vector>
#include <string>

struct x2A_hdr
{
    uint16_t t;
    uint16_t size;
    // uint32_t k;
};

struct x2A_local_entry
{
    std::string s;
    uint32_t suffix;
};

struct x2A_reference_entry
{
    uint32_t ptr;
    uint32_t suffix;

    // Always null?
    uint32_t un1;
};

// Layer names
struct x2A
{
    x2A_hdr hdr;
    bool references;
    std::vector<x2A_local_entry> local_entries;
    std::vector<x2A_reference_entry> reference_entries;
    uint32_t k;
};

#endif // X2A_H
